import request from "@/utils/serviceApiH2";

/*  职位管理  */

// 新增企业职位
export function addPositionApi(data) {
  return request({
    url: `/apiH2/member/company/position/addPosition`,
    method: "POST",
    data,
  });
}

// 企业职位列表查询
export function positionListApi(params) {
  return request({
    url: "/apiH2/member/company/position/positionList",
    method: "GET",
    params,
  });
}

// 企业根据id操作职位
export function operationPositionByIdApi(params,data) {
  return request({
    url: `/apiH2/member/company/position/operationPositionById`,
    method: "PUT",
    params: {
      type: params
    },
    data
  });
}

// 企业根据id刷新职位
export function refreshPositionByIdApi(id) {
  return request({
    url: `/apiH2/member/company/position/refreshPositionById/${id}`,
    method: "PUT",
  });
}

// 根据id修改企业职位
export function updatePositionByIdApi(data,id) {
  return request({
    url: `/apiH2/member/company/position/updatePositionById/${id}`,
    method: "PUT",
    data
  });
}

// 企业工作地区查询
export function selCategoryDistrictListApi() {
  return request({
    url: "/apiH2/member/company/position/selCategoryDistrictList",
    method: "GET",
  });
}

// 企业职位类别查询
export function selCategoryJobListApi() {
  return request({
    url: "/apiH2/member/company/position/selCategoryJobList",
    method: "GET",
  });
}


